package com.tiancheng.onecode.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tiancheng.onecode.entity.Member;
import com.tiancheng.onecode.entity.Merchant;
import com.tiancheng.onecode.entity.User;
import com.tiancheng.onecode.model.dto.MerchantStatisticsDTO;
import com.tiancheng.onecode.model.dto.PayMerchantDTO;
import com.tiancheng.onecode.model.request.admin.MerchantQueryReq;
import com.tiancheng.onecode.model.request.admin.MerchantUserQueryReq;
import com.tiancheng.onecode.model.request.admin.QueryMerchantsReq;
import com.tiancheng.onecode.model.response.admin.MerchantQueryRes;
import com.tiancheng.onecode.model.response.admin.MerchantSimpleInfoRes;
import com.tiancheng.onecode.model.response.admin.MerchantStatisticsRes;
import com.tiancheng.onecode.model.response.admin.MerchantUserQueryRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: kellen
 * @Description: 商户管理 mapper
 * @Date: create in 2024/12/9 18:11
 */
@Mapper
public interface MerchantMapper extends MYBaseMapper<Merchant> {
    IPage<MerchantQueryRes> queryPage(IPage<Merchant> page, @Param("c") MerchantQueryReq params);

    /**
     * 查询支付商户信息
     * @param platformMerchantId
     * @return
     */
    PayMerchantDTO queryPayMerchant(@Param("platformMerchantId")Long platformMerchantId);

    /**
     * 平台商户统计
     * @param platformCode
     * @return
     */
    List<MerchantStatisticsDTO> merchantStatistics(@Param("platformCode")String platformCode);

    /**
     * 查询商户基础信息
     * @param merchantsReq
     * @return
     */
    List<MerchantSimpleInfoRes> queryMerchantSimpleInfo( @Param("c") QueryMerchantsReq merchantsReq);
}
